package com.zhku.xxl.service.serviceImp;

import com.zhku.xxl.dao.AdminDao;
import com.zhku.xxl.dao.daoImp.AdminDaoImp;
import com.zhku.xxl.entity.Admin;
import com.zhku.xxl.service.AdminService;
import com.zhku.xxl.service.GenericService;

public class AdminServiceImp extends GenericService<Admin> implements AdminService {

    private AdminDao adminDao = new AdminDaoImp();

    @Override
    public int insertTest(Admin admin) {
        return super.insert(admin);
    }

    @Override
    public Admin findByAccount(String account) {
        return super.findByAccount(Admin.class, account);
    }

    @Override
    public int updateInfo(String name, String contact, String email, String passwordFieldText, int Id) {
        return super.updateInfo(Admin.class, name, contact, email, passwordFieldText, Id);
    }


}
